package com.itheima.job;

import java.util.ArrayList;

public class Test05 {
    public static void main(String[] args) {
        String[] al = {"1","2","3","4","5","6","7"};
        method(al ,2,3);
        for (String s : al) {
            System.out.println(s);
        }
    }
    public static <E> void method(E[] e , int a , int b){
        //实现任意引用类型数组能够将指定位置元素交换。
        E temp = e[a];
        e[a] = e[b];
        e[b] = temp;
    }
}
